using System;
using System.Collections.Generic;
using System.Text;
using System.Net;
using System.IO;
using System.Data;

namespace LiveStock.RssObjects
{
    class RssReader
    {
        private RssReader() { }

        public static RssDataSet ProcessRSSItem(string rssURL)
        {
            WebRequest myRequest = WebRequest.Create(rssURL);
            WebResponse myResponse = myRequest.GetResponse();

            Stream rssStream = myResponse.GetResponseStream();
            RssDataSetLoader ds = new RssDataSetLoader();
            ds.Fill(rssStream);
            //RssDataSet theRssDataSet = (RssDataSet)ds;
            
            myResponse.Close();
            return (RssDataSet)ds;
        }
    }
}
